package com.designpattern.sixchapter.first;

public class RemoteControlTest {
	
	public static void main(String[] args) {
		SimpleRemoteControl remote = new SimpleRemoteControl();
		remote.setCommand(new LightOnCommand(new Light()));
		remote.btnWasPressed();
		remote.setCommand(new GarageDoorOpenCommand(new GarageDoor()));
		remote.btnWasPressed();
	}

}
